import request from '@/utils/request'
const apiUrl = '/api/overtime-apply'
// 保存加班申请
export function saveOvertimeApply(data) {
    return request({
        url: `${apiUrl}/save`,
        method: 'post',
        data
    })
}

// 获取加班申请列表
export function getOvertimeApplyList(params) {
    return request({
        url: `${apiUrl}/list`,
        method: 'get',
        params
    })
}

// 获取加班申请详情
export function getOvertimeApplyDetail(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'get'
    })
}

// 删除加班申请
export function deleteOvertimeApply(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'delete'
    })
} 